package cn.tedu.bonfire.admin.account.service.impl;

import cn.tedu.bonfire.admin.account.dao.persist.repository.INoteRepostiory;
import cn.tedu.bonfire.admin.account.service.INoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NoteServiceImpl implements INoteService {

    @Autowired
    private INoteRepostiory noteRepostiory;

    @Override
    public int deleteNoteStatus(Long noteId, Integer status) {
        return noteRepostiory.deleteNoteStatus(noteId,status);
    }

    @Override
    public List<Long> selectNoteById(Long userId) {
        return noteRepostiory.selectNoteById(userId);
    }
}
